﻿<?xml version="1.0" encoding="utf-8" ?>
<Recipe Name="CreateVSPackageDeploymentInfo" xmlns="http://schemas.microsoft.com/pag/gax-core"
                               xmlns:xi="http://www.w3.org/2001/XInclude" Bound="false">
  <DocumentationLinks>
    <Link Kind="Documentation" Caption="How to: Generate Registry Information for an Installer" Url="ms-help://MS.VSCC.v90/MS.VSIPCC.v90/MS.VSSDK.v90/dv_vsintegration/html/b1b41012-a777-4ccf-81a6-3b41f0e96583.htm" />
  </DocumentationLinks>
  <xi:include href="../Common/CommonTypeAliases.xml"
				xpointer="xmlns(gax=http://schemas.microsoft.com/pag/gax-core) xpointer(/gax:Types)" />
  <Caption>Create VS Package Deployment Information</Caption>
  <Description>Create VS Package Deployment Information</Description>
  <HostData>
    <Icon File="Resources\Registry.ico" />
    <CommandBar Menu="VSSDKAssistProjectDeploy"/>
  </HostData>
  <Arguments>
    <xi:include href="../Common/CommonArguments.xml"
					  xpointer="xmlns(gax=http://schemas.microsoft.com/pag/gax-core) xpointer(/gax:Arguments/gax:Argument)" />
    <Argument Name="VSPackageProject" Type="EnvDTE.Project, EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Required="true">
      <ValueProvider Type="VSSDKAssist.Assets.ValueProviders.VisualStudio.CurrentlySelectedProjectValueProvider, VSSDKAssist.Assets"
                     Stage="OnBeginRecipe"/>
    </Argument>
    <Argument Name="VSPackageCodeClass" Type="EnvDTE.CodeClass, EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Required="true">
      <ValueProvider Type="VSSDKAssist.Recipes.Common.ValueProviders.VSPackageCodeClassValueProvider, VSSDKAssist"
                     Stage="OnBeginRecipe"/>
    </Argument>
    <Argument Name="DeploymentInformation" Type="VSSDKAssist.Enums.DeploymentInfo, VSSDKAssist" Required="true">
      <ValueProvider Type="VSSDKAssist.Recipes.Common.ValueProviders.DefaultDeploymentInfoValueProvider, VSSDKAssist"
               Stage="OnBeginRecipe"/>
    </Argument>
    <Argument Name="RegistrationMethod" Type="Microsoft.VisualStudio.Shell.RegistrationMethod, Microsoft.VisualStudio.Shell.9.0, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Required="true">
      <ValueProvider Type="VSSDKAssist.Recipes.Common.ValueProviders.DefaultRegistrationMethodValueProvider, VSSDKAssist"
               Stage="OnBeginRecipe"/>
    </Argument>    
  </Arguments>
  <GatheringServiceData>
    <Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
      <Pages>
        <Page Type="VSSDKAssist.Recipes.CreateVSPackageDeploymentInfo.CreateVSPackageDeploymentInfoCP, VSSDKAssist"
          Height="200" Width="510">
          <Title>Specify deployment general properties</Title>
          <LinkTitle>Deployment general properties</LinkTitle>
        </Page>
      </Pages>
    </Wizard>
  </GatheringServiceData>
  <Actions CoordinatorServiceType="VSSDKAssist.Recipes.Common.Coordinators.ExecutionProgressCoordinator, VSSDKAssist">
    <!--Compile project-->
    <Action Name="CompileProject"
          Type="VSSDKAssist.Assets.Actions.VisualStudio.CompileProjectAction, VSSDKAssist.Assets"
          StatusMessage="Compiling project"
          WriteMessageToOutputWindow="true">
      <Input Name="Project" RecipeArgument="VSPackageProject"/>
    </Action>
    <!-- Create Deployment Info -->
    <Action Name="CreateDeploymentInfo"
              Type="VSSDKAssist.Recipes.CreateVSPackageDeploymentInfo.CreateVSPackageDeploymentInfoAction, VSSDKAssist"
              StatusMessage="Creating deployment information"
              WriteMessageToOutputWindow="true">
      <Input Name="Project" RecipeArgument="VSPackageProject" />
      <Input Name="CodeClass" RecipeArgument="VSPackageCodeClass" />
      <Input Name="DeploymentInfo" RecipeArgument="DeploymentInformation" />
      <Input Name="RegistrationMethod" RecipeArgument="RegistrationMethod" />      
    </Action>
  </Actions>
</Recipe>